package com.tansun.easycare.rule.modelauthority.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 规则权限Entity
 *
 * @author lixs
 * @version 2017-03-01
 */
public class RuleModelAuthority extends RuleBaseEntity<RuleModelAuthority> {

    private static final long serialVersionUID = 1L;
    private String projectCode;        // 规则库编码
    private String manageId;        // 规则管理ID
    private String owner;        // 权限拥有者
    private String locker;        // 操作锁定人
    private String users;        // 有权限的用户

    public RuleModelAuthority() {
        super();
    }

    public RuleModelAuthority(String id) {
        super(id);
    }

    @Length(min = 0, max = 50, message = "规则库编码长度必须介于 0 和 50 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    @Length(min = 0, max = 50, message = "规则管理ID长度必须介于 0 和 50 之间")
    public String getManageId() {
        return manageId;
    }

    public void setManageId(String manageId) {
        this.manageId = manageId;
    }

    @Length(min = 0, max = 50, message = "权限拥有者长度必须介于 0 和 50 之间")
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    @Length(min = 0, max = 50, message = "操作锁定人长度必须介于 0 和 50 之间")
    public String getLocker() {
        return locker;
    }

    public void setLocker(String locker) {
        this.locker = locker;
    }

    @Length(min = 0, max = 200, message = "有权限的用户长度必须介于 0 和 200 之间")
    public String getUsers() {
        return users;
    }

    public void setUsers(String users) {
        this.users = users;
    }

}